<?php

//$target_dir = "C:\Documents and Settings\barana\workspace\android\CO2SHApp\htdocs";
//$WAVFile = "677Hz.wav";
//$pathToWAVFile = $target_dir . "\\" . $WAVFile;

//Get file
//$AMRFile = "677Hz.3gpp";
//$pathToAMRFile = $target_dir . "\\" . $AMRFile;



function convertAmrToWav($AMRFile, $WAVFile){

//ffmpeg command   --  convert from AMR to WAV    ffmpeg -i file.amr file.wav
$command = "ffmpeg -i $AMRFile $WAVFile";
//$command = "rename " . $pathToAMRFile .  " " . $wav_file;
shell_exec($command);

}
              
?>
